package com.xjj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.xjj.entity.PageBean;
import com.xjj.entity.Photo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PhotoService extends IService<Photo> {
    //根据发送者id查询所有相册
    PageBean<Photo> getAllPhotoByMangerId(int id, int pageNum, int sizeNum,int parentId) throws JsonProcessingException;

    //根据相册id删除相册
    void deletePhoto(Photo photo);

    //发布相册
    void addPhoto(Photo photo);

    //模糊查询相册
    PageBean<Photo> getByTimeOrContent(Photo photo,int pageNum, int sizeNum);

    //点赞
    void like(int photoId,int parentId);

    //家长查看相册详情
    Photo getByPhotoId(int photoId,int parentId);

    //家长查看当前班级所有相册
    PageBean<Photo> parentGetAll(int studentId,int pageNum, int sizeNum);
}
